php forum
php mysql forum
php mysql smarty
 
Topic Options
#240805 - 03/16/03 11:02 AM [6.2] Special Header/Footer 1.1
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Mod Name / Version - Special Headers and Footers 1.1 <br />   Version 1.1 fixes a bug where the guest footer was displayed in showprofile.php <br /> <br />Description - This modification allows you to use two different header and footer files. If the user is not logged in, they will view guest_header.php and guest_footer.php include. If they are Logged in AND they are a member of the "User" group (#3) they will still view the guest includes. If they are not a member of the user group and logged in, then they will view the member_header.php and member_footer.php. This is useful so that perhaps guests and regular members see banner ads on your site. But admins, mods and members of <br />special user groups can perhaps view a header and footer without banners. <br /> <br />Working Under - UBB.Threads 6.2 <br /> <br />Pre-requisites - none <br /> <br />Author - JoshPet - www.joshuapettit.com <br /> <br />Credits - Based on an original mod by JustDave - commissioned by kordegnen <br /> <br />Files Altered - ubbt.inc.php, admin/menu.php <br /> <br />Database Altered - none <br /> <br />New Files - in the includes directory: guest_header.php, member_header.php, <br /> guest_footer.php, member_footer.php <br />


Attachments
73272-SpecialHeaderFooter1.1.txt (104 downloads)



Edited by JoshPet (03/19/03 01:01 AM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#240806 - 03/16/03 11:07 AM Re: [6.2] Special Header/Footer 1.0 [Re: Daine]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Cool idea. Thanks Josh <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#240807 - 03/17/03 04:18 AM Re: [6.2] Special Header/Footer 1.0 [Re: Daine]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
it´s set up and running like a charm ;O)<br /><br />thanx<br /><br />thomas<br />

Top
#240808 - 03/18/03 06:30 AM bug report 1 [Re: Daine]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
hi<br /><br />found 1 bug so far.<br /><br />when a member looks at an profile it uses the guest footer ??<br /><br />thomas

Top
#240809 - 03/19/03 01:02 AM Re: bug report 1 [Re: shame4me]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
[]kordegnen said:<br />hi<br /><br />found 1 bug so far.<br /><br />when a member looks at an profile it uses the guest footer ??<br /><br />thomas [/]<br /><br />Ah OK - just about everwhere uses the $user variable, but the showprofile.php script uses $thisuser<br /><br />I made adjustments for that and updated the main post to version 1.1. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#240810 - 03/28/03 01:56 AM Re: bug report 1 [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
excellent for paid membership sites <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#240811 - 08/24/03 01:56 PM Re: bug report 1 [Re: SurfMinister]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Josh - I have just set this up - and have noticed now that postlist.php - the bit that shows additional pages is now showing every post as a page. <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />( Pages 1 2 3 4 ... 112 113 all ) <br /><br />for a post 113 message slong.<br /><br />I have the sidebar pal activated - but apart from that and running 6.3.1 the mod is as per your instructions.<br /><br />Any thoughts?
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#240812 - 08/24/03 04:20 PM Re: bug report 1 [Re: Gorlum]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Wow. <img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />I just studied the instructions of the hack. I have no idea how it can do anything to postlist. <br /><br />This basically is using the mechinism in place to have specific headers per forum.... but instead using user status to determine it instaed. <br /><br /><img src="/forum/images/graemlins/crazy.gif" alt="" /><br /><br />The only instructions are in the send_header and send_footer functions..... that shouldn't have any impact on postlist. <img src="/forum/images/graemlins/confused.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#240813 - 08/24/03 05:07 PM Re: bug report 1 [Re: Daine]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Exactly what I thought. A very strange error.<br /><br />Hmmmm I am wondering if it because I did not do the footer part - but then I can't see how this would affect things either.<br /><br />I undid the $thisuser, $user addition to the send header function and the code beneath that for the actual group etc., and the problem went away.<br /><br /><br /><br />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#240814 - 08/24/03 07:05 PM Re: bug report 1 [Re: Gorlum]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Hmm......<br /><br />What about if you put $user back in.... I wonder if $thisuser is the problem. Nearest I can tell, that's only used on showprofile.php that's why I had to do it like that. <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#240815 - 12/08/03 04:23 PM Re: bug report 1 [Re: Daine]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Anybody give this one a go on 6.4... I am moving to a paid blended site and need to offer this one.

Top
#240816 - 12/09/03 10:20 AM Re: bug report 1 [Re: Kelly]
coloradok5 Offline
Enthusiast

Registered: 07/11/01
Posts: 462
Loc: Colorado
I need this for 6.4 also.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks